var web = require("../../utils/confirmBuyWeb.js");
Page({
  data: {
    // 是否模拟开盘
    isMoni: my.getStorageSync({ key: 'isMoni' }).data,

    houseId: "",
    buyerList: [],
    index: 0,
    buildingName: "",
    houseNo: "",
    area: "",
    price: "",

    // 是否能第二次点击
    secondClick: true,
    taskType: "房"
  },
  onLoad(query) {
    web.client.getConfirmRoomInfo(query.houseId, this);
    var taskType = "房";
    if (my.getStorageSync({ key: 'taskType' }).data == "车位") {
      taskType = "车位";
      my.setNavigationBar({ title: "选车位确认" });
    }
    this.setData({
      houseId: query.houseId,
      taskType: taskType
    });
  },
  submit() {
    web.client.submitSignature(this.data.houseId, this);
  },
  onShareAppMessage() {
    return {
      title: '公证 e 选房',
      desc: '提供在线选房服务',
      path: 'pages/login/login'
    };
  }
});
